package dev.loong.boot3.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import dev.loong.boot3.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserDao {
    User getUser(Long id);
    int insertUser(User user);
    int deleteUser(Long id);
    List<User> findUsers(@Param("userName") String userName, @Param("note") String note);
    int updateUser(User user);
    User getUserByName(String userName);
}
